<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
<div class="clearfix"></div>
<div class="row">
  <div class="col-md-12 col-sm-12 col-xs-12">
    <div class="x_panel">
      <div class="x_title">
        <h2>新增手游基础信息 <i class="fa fa-user"></i><small>${devUserSession.devName}</small></h2>
        <div class="clearfix"></div>
      </div>
      <div class="x_content">
        <!-- <div class="item form-group">
                 <label class="control-label col-md-3 col-sm-3 col-xs-12" ></label>
                 <div class="col-md-6 col-sm-6 col-xs-12">
                   <form action="uploadlogo" class="dropzone" style="height:100px;">
                   </form>
              <div class="clearfix"></div>
           </div>
         </div> -->
        <div class="clearfix"></div>
        <form class="form-horizontal form-label-left" action="${pageContext.request.contextPath }/app/addinfoSuccess" method="post" enctype="multipart/form-data">
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">软件名称 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input id="software_name" class="form-control col-md-7 col-xs-12"
                     data-validate-length-range="20" data-validate-words="1" name="softwareName"  required="required"
                     placeholder="请输入软件名称" type="text">
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">APK名称 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input id="apk_name" class="form-control col-md-7 col-xs-12"
                     data-validate-length-range="20" data-validate-words="1" name="apkName"   required="required"
                     placeholder="请输入APK名称" type="text">
            </div>
          </div>

          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">支持ROM <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input id="suport_rom" class="form-control col-md-7 col-xs-12" name="supportROM"
                     data-validate-length-range="20" data-validate-words="1"   required="required"
                     placeholder="请输入支持的ROM" type="text">
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">界面语言 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input id="interface_language" class="form-control col-md-7 col-xs-12"
                     data-validate-length-range="20" data-validate-words="1" name="interfaceLanguage"   required="required"
                     placeholder="请输入软件支持的界面语言" type="text">
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">软件大小 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input type="number" id="software_size" name="softwareSize"   required="required" onkeyup="value=value.replace(/[^\d]/g,'')"
                     data-validate-minmax="10,500"  placeholder="请输入软件大小，单位为Mb" class="form-control col-md-7 col-xs-12">
            </div>
          </div>

          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">下载次数 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input type="number" id="downloads" name="downloads"   required=54trf"required"
                     data-validate-minmax="10,500"  placeholder="请输入下载次数" class="form-control col-md-7 col-xs-12">
            </div>
          </div>

          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">所属平台 <span class="required">*</span></label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <select name="flatform_id" id="flatform_id" class="form-control"   required="required">
                <c:forEach items="${pingtai}" var="sw">

                  <option  value="${sw.value}">${sw.key}</option>

                </c:forEach>
              </select>

            </div>
          </div>

          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">一级分类 <span class="required">*</span></label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <select name="category_level1" id="category_level1" class="form-control"   required="required">
                <c:forEach items="${class1}" var="sw">

                  <option  value="${sw.value}">${sw.key}</option>

                </c:forEach>
              </select>
            </div>
          </div>

          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">二级分类 <span class="required">*</span></label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <select name="category_level2" id="category_level2" class="form-control"  required="required">
                <c:forEach items="${class2}" var="sw">

                  <option  value="${sw.value}">${sw.key}</option>

                </c:forEach>
              </select>
            </div>
          </div>

          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">三级分类 <span class="required">*</span></label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <select name="category_level3" id="category_level3" class="form-control"  required="required">
                <c:forEach items="${class3}" var="sw">

                  <option  value="${sw.value}">${sw.key}</option>

                </c:forEach>
              </select>
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">手游状态 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input type="hidden" name="status" id="status" value="1">待审核
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">应用简介 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <textarea id="app_info" name="app_info"     required="required"
                        placeholder="请输入本软件的相关信息，本信息作为软件的详细信息进行软件的介绍。" class="form-control col-md-7 col-xs-12"></textarea>
            </div>
          </div>
          <div class="item form-group">
            <label class="control-label col-md-3 col-sm-3 col-xs-12">LOGO图片 <span class="required">*</span>
            </label>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <input type="file" class="form-control col-md-7 col-xs-12" name="a_logoPicPath"  required="required" id="logo_pic_path"/>
              ${fileUploadError }
            </div>
          </div>
          <div class="ln_solid"></div>
          <div class="form-group">
            <div class="col-md-6 col-md-offset-3">
              <button id="send" type="submit" class="btn btn-success">保存</button>
              <button type="button" class="btn btn-primary" id="back">返回</button>
              <br/><br/>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
<%@include file="common/footer.jsp"%>
<script src="${pageContext.request.contextPath }/statics/localjs/appinfoadd.js"></script>